from rest_framework.serializers import ModelSerializer
from home import models

class NavSer(ModelSerializer):
    class Meta:
        model = models.NavModel
        fields = "__all__"
#banner序列化
class BannerSer(ModelSerializer):
    class Meta:
        model = models.BannerModel
        fields = ["title","img","url"]